<?php
//if ($this->agent->is_mobile() && MOBILE_SITE) redirect('http://'. MOBILE_SUBDOMAIN . '.' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);

echo doctype('xhtml1-trans');
?>
<html xmlns:fb="http://ogp.me/ns/fb#">
    <head>
        <title><?php if (isset($title)) echo $title; else echo DEFAULT_TITLE; ?></title>
        <?php
        $config = get_cache('configurations');
        echo $config['webmaster_tracker'];
        ?>
        <meta name="keywords" content="<?php if (isset($keywords)) echo $keywords; else echo DEFAULT_KEYWORDS; ?>" />
        <meta name="description" content="<?php if (isset($description)) echo $description; else echo DEFAULT_DESCRIPTION; ?>" />
        <meta name="title" content="<?php if (isset($title)) echo $title; else echo DEFAULT_TITLE; ?>" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="canonical" href="<?php echo $this->uri->uri_string();?>" />
        <link rel="icon" href="/images/favicon.ico" type="image/x-icon">
        <link rel="shortcut icon" href="/images/<?php echo $config['favicon'];?>" type="image/x-icon">
        <link href="/css/bootstrap.css" rel="stylesheet">
        <link href="/css/site.css" rel="stylesheet">
        <link rel="stylesheet" href="/css/style_drop.css">
        <?php if (isset($css) && ($css != '')) echo $css; ?>
        {IMPORT_CSS}
    </head>
    <body>
        <div id="fb-root"></div>
        <script>(function(d, s, id) {
          var js, fjs = d.getElementsByTagName(s)[0];
          if (d.getElementById(id)) return;
          js = d.createElement(s); js.id = id;
          js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=646276338733103";
          fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));</script>